<?php
/**
 * Created by PhpStorm.
 * User: Yieong
 * Date: 14-10-13
 * Time: 下午2:08
 */

class SiteController extends AdminBaseController{

    public function index(){
        $game = PubAuth::getMyGameList();
        $platform = PubAuth::getMyPlatformList();

        $user = PubAuth::getUser();

        $this->setTitle("{$user['UserName']}", '欢迎您!');
        $this->out['game'] = $game[$this->game];
        $this->out['platform'] = $platform[$this->platform];
        
        //用户渠道权限
        $option = SiteService::getOS($user);
        PubAuthSession::set('os', $option);
    }
    
    
    
    

} 